package org.example.tree.binary;

import org.example.tree.entity.ArrayBinaryNode;

/**
 * @author zjt
 * @description
 * @date 2024/1/31 14:31
 */
public class ArrayBinary {

    public static void main(String[] args) {
        int[] arr = {1, 2, 3, 4, 5, 6, 7};
        //创建一个 ArrBinaryTree
        ArrayBinaryNode arrayBinaryNode = new ArrayBinaryNode(arr);
        ArrayBinaryTraversal arrayBinaryTraversal = new ArrayBinaryTraversal();
        arrayBinaryTraversal.preorderTraversal(arrayBinaryNode);
    }
}
